diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-16 13:47:43 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-16 13:47:43 +0000 |
| commit | 355a31d207a28d66a03351498fefe33b4c358c95 (patch) | |
| tree | 6b083deb2142cf1dc77d437ec014e9efb217a40c /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 65f831f835bca4c75273a4a2e6b833f62196b349 (diff) | |
Make structs GC objects
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 7 insertions, 7 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 74b812a3..312c3100 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -7,26 +7,26 @@ Compilation unit elements: locals=((param "closurePointer__0" data-ptr) (param "local__isActive" int) (param "local__name" int) (val "structValuePointer__0" data-ptr) (val "structValue__0" int)) return-type=int body=( - (alloc-heap (local "structValuePointer__0") (struct (int (struct (int int))))) + (alloc-heap (local "structValuePointer__0") (struct (data-ptr (struct (int (struct (int int))))))) ( memory-store pointer=(local "structValuePointer__0") - layout=(struct (int (struct (int int)))) - offset=(0) + layout=(struct (data-ptr (struct (int (struct (int int)))))) + offset=(1 0) value=(int 0) ) ( memory-store pointer=(local "structValuePointer__0") - layout=(struct (int (struct (int int)))) - offset=(1 0) + layout=(struct (data-ptr (struct (int (struct (int int)))))) + offset=(1 1 0) value=(local "local__name") ) ( memory-store pointer=(local "structValuePointer__0") - layout=(struct (int (struct (int int)))) - offset=(1 1) + layout=(struct (data-ptr (struct (int (struct (int int)))))) + offset=(1 1 1) value=(local "local__isActive") ) (data-ptr-to-int (local "structValue__0") (local "structValuePointer__0")) |
